package com.mcb.designmode;

/**
 * 抽象观察者目标
 */
public interface Subject {
    /**
     * @description:
     * @param: null
     * @return:
     * @author mcb
     * @date: 2021/5/7 11:20
     */
    public void attach(Observer observer);

    /**
     * @description:
     * @param: null
     * @return:
     * @author mcb
     * @date: 2021/5/7 11:20
     */
    public void detach(Observer observer);

    /**
     * @description:
     * @param: null
     * @return:
     * @author mcb
     * @date: 2021/5/7 11:20
     */
    public void notity(String message);

}
